package org.pine.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 功能模块表
 * </p>
 *
 * @author pine
 * @since 2025-04-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pine_model")
public class Model extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 3785222958997715120L;

    /**
     * 父功能模块ID
     */
    private Long parentModelId;

    /**
     * 功能编码
     */
    private String code;

    /**
     * 功能名称
     */
    private String name;

    /**
     * 功能描述
     */
    private String description;

    /**
     * 图标标识
     */
    private String icon;

    /**
     * 类型:1=菜单目录,2=按钮,3=权限
     */
    private Integer type;

    /**
     * 功能请求链接
     */
    private String requestUrl;

    /**
     * 显示排序
     */
    private Integer sort;

    /**
     * 是否隐藏:0=否,1=是
     */
    private Integer hiddenFlag;

    /**
     * 备注
     */
    private String remark;
}
